#include <stdio.h>
#include <math.h>
#define PI 3.14159
main ()
{
  double x;
  scanf("%lf", &x);

  double r = x * PI/180;
  printf("%lf\n", cos(r));
}
